package com.zmzncs.lmtc.module.order.pojo.order_Info;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmzncs.lmtc.module.park.pojo.park_info.ParkInfoDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderInfoManageVO {

    @ApiModelProperty(value = "是否车场主（0：不是 1：是）")
    private Integer isOwner;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "停车场列表")
    private List<ParkInfoDTO> parkList;

    @ApiModelProperty(value = "停车场ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parkId;

    @ApiModelProperty(value = "停车场名称")
    private String parkName;

    @ApiModelProperty(value = "车场注册来源（1：泊链 2：咪网 3：道尔，4：腾达 ）")
    private Integer parkSource;

    @ApiModelProperty(value = "今日收入")
    private BigDecimal todayRevenue;

    @ApiModelProperty(value = "今日泊车")
    private Long todayParking;

    @ApiModelProperty(value = "累计收入")
    private BigDecimal totalRevenue;

    @ApiModelProperty(value = "累计泊车")
    private Long totalParking;

    @ApiModelProperty(value = "月租车数")
    private Long totalMonthCar;

    @ApiModelProperty(value = "待办事项")
    private Long todoCount;

    @ApiModelProperty(value = "预约申请")
    private Long reserveCount;

    public void setTodayParking(Long todayParking) {
        if (todayParking == null){
            this.todayParking = 0L;
        } else {
            this.todayParking = todayParking;
        }
    }

    public void setTotalRevenue(BigDecimal totalRevenue) {
        if (totalRevenue == null){
            this.totalRevenue = new BigDecimal(0);
        } else {
            this.totalRevenue = totalRevenue;
        }
    }

    public void setTotalParking(Long totalParking) {
        if (totalParking == null){
            this.totalParking = 0L;
        } else {
            this.totalParking = totalParking;
        }
    }

    public void setTotalMonthCar(Long totalMonthCar) {
        if (totalMonthCar == null){
            this.totalMonthCar = 0L;
        } else {
            this.totalMonthCar = totalMonthCar;
        }
    }
}
